HTTP Headers
-
Representation of the HTTP headers associated with a
HTTPRequest
orHTTPResponse
. Headers are subscriptable using case-insensitive comparison or provideName
constants. eg.let contentLength = headers["content-length"]
or
See morelet contentLength = headers[.contentLength]
Declaration
Swift
public struct HTTPHeaders
-
Version number of the HTTP Protocol
See moreDeclaration
Swift
public struct HTTPVersion